package cn.stylefeng.guns.modular.basic.mapper;

import cn.stylefeng.guns.modular.basic.entity.BasicPositionmaterial;
import cn.stylefeng.guns.modular.basic.model.params.BasicPositionmaterialParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicPositionmaterialResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 库位物料表 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2019-09-18
 */
public interface BasicPositionmaterialMapper extends BaseMapper<BasicPositionmaterial> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2019-09-18
     */
    List<BasicPositionmaterialResult> customList(@Param("paramCondition") BasicPositionmaterialParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2019-09-18
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BasicPositionmaterialParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2019-09-18
     */
    Page<BasicPositionmaterialResult> customPageList(@Param("page") Page page, @Param("paramCondition") BasicPositionmaterialParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2019-09-18
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BasicPositionmaterialParam paramCondition);

	BasicPositionmaterialResult findBySpec(@Param("paramCondition")BasicPositionmaterialParam param,@Param("operateId")Long operateId);

}
